package com.TTBook.module.member;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.TTBook.module.common.MallBaseAction;
import com.TTBook.utils.BookBaseServiceException;
import com.opensymphony.xwork2.Action;

public class LoginAction extends MallBaseAction{

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -7192713773438435093L;
	private static final Logger log = LoggerFactory.getLogger(LoginAction.class);
	
	public String preLogin() throws BookBaseServiceException
	{
		return "chris";
	}
	
	public String login()throws BookBaseServiceException
	{	
		String loginName = servletRequest.getParameter("loginName");
		if(StringUtils.isNotBlank(loginName)){
			return "success";
		}else{
			return "memberBegin";
		}
	}
	public String logout()throws BookBaseServiceException
	{
		return "success";
	}
}
